package week08.company02;

/**
 * Created by zhangxiaokun on 2018/3/21.
 `   采购部门
 */
public class Purchase extends Colleague {
    public Purchase(Mediator mediator) {
        super(mediator);
    }

    public void buyIBMComputer(int number) {
        System.out.println("购买了" + number + "台电脑");
        //通知中介者，购买了电脑
        super.mediator.execute("purchase.buy", number);
    }

    public void refuseBuyIBM() {
        System.out.println("决绝购买电脑");
    }
}
